﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PIP_IndexSetup.aspx.cs" Inherits="Hisun.View.ProductInProcess.PIP_IndexSetup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">中间体分配系数设置</div></div>
    <div class ="CommonPage_Body">
        <table style="width: 100%;">
            <tr>
                <td colspan="3">
                   <asp:Label ID="Label3" runat="server" Text="过滤条件：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_FilterText" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_fullCenterList" runat="server" 
                        onclick="Button_fullCenterList_Click" Text="刷新" /></td>
            </tr>
            <tr>
                <td colspan="3">
                  <asp:Label ID="Label1" runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="dropCostCenterSelect" runat="server" Height="31px" 
                        Width="218px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Label ID="Label2" runat="server" Text="成本细项类型：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_CostItemsList" runat="server" Height="24px" 
                        Width="157px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" OnClick="Button_Query_Click" Text="查询" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_Input" runat="server">
                 
                    <asp:GridView ID="GridView_PIPList" runat="server" SkinID="GridView"  AutoGenerateColumns="False">
                        <Columns>
                            <asp:BoundField DataField="中间体ID" HeaderText="中间体ID" />
                            <asp:BoundField DataField="中间体名称" HeaderText="中间体名称" />
                            <asp:BoundField DataField="计量单位" HeaderText="计量单位" />
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label4" runat="server" Text="中间体系数"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox_Index" runat="server"  Width="100px" 
                                        Text='<%# string.Format("{0:N2}",Eval("分配系数")) %>'></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator_Index" 
                                        runat="server" ControlToValidate="TextBox_Index" ErrorMessage="*" 
                                        ValidationExpression="^(([1-9]+\d*)|([1-9]+\d*\.\d{1,2}))$" ValidationGroup="group"></asp:RegularExpressionValidator>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" Text="保存" 
                        onclick="Button_Save_Click" ValidationGroup="group" /> 
                           </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                   <asp:HiddenField ID="HiddenField_CurrentCenterId" runat="server" />
                    <asp:HiddenField ID="HiddenField_CurrentCostItem" runat="server" />
                </td>
            </tr>
        </table>
    
    
    </div>
    </div>
    </form>
</body>
</html>
<% = alert %>